package com.sf.proxy.custom.statics;

public class HuangNiuProxy implements Person{

    private Person me;

    public void setMe(Person me) {
        this.me = me;
    }

    @Override
    public void maipiao(){
        before();
        me.maipiao();
        after();
    }

    private void before(){
        System.out.println("买票前,先收钱");
    }
    private void after(){
        System.out.println("买票后,通知用户买好了");
    }
}
